<?php //TODO:检测权限 ?>
<?php if ($v['recommend']): ?>
    <a href="#"  title="取消内页推荐"  class='btn btn-primary btn-small btn-ajax-recommend' data-id="<?php echo $v['id'] ?>" data-recommend="0">  <i class="fa fa-star"></i> </a>
<?php else: ?>
    <a href="#" title="内页推荐" class='btn btn-small btn-ajax-recommend' data-id="<?php echo $v['id'] ?>" data-recommend="1"> <i class="fa fa-star"></i> </a>
<?php endif ?>